package com.wing.cabinet.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StoresRequisitionProduct;
import com.wing.cabinet.model.request.StoresRequisitionProductForm;
import com.wing.cabinet.model.response.StoresRequisitionProductVO;
import com.wing.cabinet.model.response.StoresRequisitionVO;

import java.util.List;
import java.util.Map;

/**
 * 领新申请产品表-Service
 *
 * @author
 */
public interface StoresRequisitionProductService extends IService<StoresRequisitionProduct> {

    /**
     * 添加
     *
     * @param storesRequisitionProductForm
     * @return
     */
    int add(StoresRequisitionProductForm storesRequisitionProductForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StoresRequisitionProductVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<StoresRequisitionProductVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StoresRequisitionProductVO get4appById(Long id);

    IPage<StoresRequisitionProductVO> getStoresRequisitionProductVOPageList(Long storesRequisitionId, Integer page, Integer limit);

    List<StoresRequisitionProductVO> getStoresRequisitionProductVOInfo(Long storesRequisitionId);


}
